<!-- Covered under the MIT license:  http://www.opensource.org/licenses/mit-license.html -->
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="<?php echo $lang; ?>"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="<?php echo $lang; ?>"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="<?php echo $lang; ?>"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="<?php echo $lang; ?>"> <!--<![endif]-->
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><?php echo $title; ?></title>
        <!--[if lt IE 9]>
        <script src="apps/web/js/ie9/IE9.js"></script>
        <![endif]--> 
        <!--[if IE]>
        <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
        <![endif]-->
        <base href="<?php echo $baseUrl; ?>" />
        <link href="base/images/favicon.ico" rel="favicon" />
        <?php if ($description) { ?>
            <meta name="description" content="<?php echo $description; ?>" />
        <?php } ?>
        <?php if ($keywords) { ?>
            <meta name="keywords" content="<?php echo $keywords; ?>" />
        <?php } ?>
        <?php foreach ($links as $link) { ?>
            <link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
        <?php } ?>
        <link rel="stylesheet" type="text/css" href="base/css/skeleton_reset.css" />
        <!--        <link rel="stylesheet" type="text/css" href="base/css/base.css" /> -->
        <link rel="stylesheet" type="text/css" href="base/css/skeleton.css" />
        <link rel="stylesheet" type="text/css" href="base/css/layout.css" />
        <?php foreach ($styles as $style) { ?>
            <link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
        <?php } ?>
        <script src="base/js/modernizr/modernizr.js"> </script>
        <script src="base/js/loader.js"> </script>
        <?php foreach ($scripts as $script) { ?>
            <script type="text/javascript" src="<?php echo $script; ?>"></script>
        <?php } ?>
    </head>
    <body>
        <div class="container"  id="container">
            <?php echo $content ?>
        </div>
        <script>
<?php
foreach ($inBodyScripts as $inBodyScript) {
    echo $inBodyScript;
}
?>
        </script>
    </body>
</html>